<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<div class="flightInfo" title="addFlight">
    <div class="flightInfoHeader">
        <span class="flightInfoHeader" style="width: 12px">--</span>
        <span class="flightInfoHeader" style="width: 90px">--</span>
        <span class="flightInfoHeader" style="width: 150px">--</span>
        <span class="flightInfoHeader">-</span>
        <span class="flightInfoHeader" style="width: 90px">--</span>
        <span class="flightInfoHeader" style="width: 70px" ></span>
        <span class="flightInfoHeader"><span class="expand">[v]</span></span>
    </div>
    <div class="flightInfoContent">
        <form:form action="${action}" commandName="NFlight">
                <form:hidden path="id" />
            <div class="left">
                <p><spring:message code="flightInfo.airport" />:
                    <form:input path="departureAirport.name" />
                </p>
                <p><spring:message code="flightInfo.DepDate" />:
                    <form:input path="departureDate" cssStyle="width: 110px"/>
                </p>
                <%--<p><spring:message code="flightInfo.time" />:
                    <form:input path="departureTime" />
                </p>--%>
            </div>
            <div class="right">
                <p><spring:message code="flightInfo.airport" />:
                    <form:input path="destinationAirport.name" />
                </p>
                <p><spring:message code="flightInfo.DesDate" />:
                    <form:input path="destinationDate" cssStyle="width: 110px"/>
                </p>
                <%--<p>
                    <spring:message code="flightInfo.time" />: <form:input path="destinationTime" />
                </p>--%>
            </div>
            <div class="sub">
                <p><spring:message code="flightInfo.plane" />: <form:input path="plane.name" /></p>
                <p><spring:message code="flightAdd.Price" />: <form:input path="economCost" cssStyle="width: 50px"/><form:input path="bussinessCost" cssStyle="width: 50px"/><form:input path="firstClassCost" cssStyle="width: 50px"/></p>
            </div>
            <input type="submit" value="Сохранить" style="float:right"/>
            <form:hidden path="freeAllPlaces" />
            <form:hidden path="freeEconomPlaces" />
            <form:hidden path="freeBussinessPlaces" />
            <form:hidden path="freeFirstClassPlaces" />
        </form:form>
    </div>
</div>